package product

import (
	"crmeb-common/global"
	"time"
)

// ProductTag
type ProductTag struct {
	global.BaseModel
	TagName string `json:"tagName" gorm:"column=tag_name;comment:标签名称"`

	TagNote string `json:"tagNote" gorm:"column=tag_note;comment:标签说明"`

	Sort int32 `json:"sort" gorm:"column=sort;comment:排序"`

	Status int32 `json:"status" gorm:"column=status;comment:状态#0关闭|1开启"`

	StartTime time.Time `json:"startTime" gorm:"column=start_time;comment:开始时间"`

	EndTime time.Time `json:"endTime" gorm:"column=end_time;comment:结束时间"`

	Position int32 `json:"position" gorm:"column=position;comment:标签在商城中的位置#0=标题下|1=标题前"`

	PlayType string `json:"playType" gorm:"column=play_type;comment:商品参与类型 product=指定商品，brand=指定品牌，merchant=指定商户，category=指定商品分类"`

	PlayProducts string `json:"playProducts" gorm:"column=play_products;comment:参与的规则id集合，配合play_type使用,在内置标签情况下这里是配置的规则值"`

	Owner int32 `json:"owner" gorm:"column=owner;comment:归属方#0=系统内置(不能删除)|1=平台自建"`
}
